Hide Content of Notifications on the Lock Screen
Stop the content of notifications from being seen by others by hiding it from the lock screen.
Go to Settings > Notifications , and enable Hide notification content.
Try now